package com.one.blocks.rbac.mapper;

import com.one.blocks.mvc.mapper.BaseMapper;
import com.one.blocks.rbac.domain.SysRole;
import org.springframework.stereotype.Repository;

/**
 * @author <a href="mailto:idler41@163.con">idler41</a> created on 2022-05-01 10:06:14
 */
@Repository
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 查询指定用户的角色
     *
     * @param userId 指定用户id
     * @return 用户角色Id
     */
    Integer selectByUserId(Integer userId);
}